<{include file="../common/header.tpl"}>
<link type="text/css" href="/css/uploadify.css" rel="stylesheet">
<script type="text/javascript" src='/js/jquery.uploadify.min.js'></script>
    <table width="100%" border="0" cellspacing="0">
     <tr>
           <td width="13%" valign="top">
               <{include file="../common/left.tpl"}>
           </td>
           <td width="87%" valign="top">

            <table width="100%" border="0" cellspacing="0">
              <tr>
                    <td>
                            <div class="subnav">
                              <div class="content-menu ib-a blue line-x">
                                  <a href="/webadmin/user/list" class="on"><em>返回问卷详情页</em></a>
                              </div>
                            </div>
                            <div class="pad_10">
                              <div class="common-form">
                                    <form name="myform" action="" method="post" id="myform">
                                    <table width="100%" class="table_form">
                                    <tbody>
                                    <tr>
                                    <td width="80">附件类型</td> 
                                    <td><input type="test" name="username" class="input-text" id="username" value=""></td>
                                    </tr>
                                    <tr>
                                    <td>附件</td> 
                                    <td><input type="file" name="uploadify" id="uploadify" /></td>
                                    </tr>
                                    <tr>
                                    </tbody></table>
                                    <div class="bk15"></div>
                                            <input name="dosubmit" type="submit" value="提交" class="button">
                                    </form>
                                    </div>
                            </div>

                    </td>
              </tr>
            </table>

        </td>
  </tr>
  </table>
<script>
    $('#uploadify').uploadify({
        'buttonText' : '选择文件',
        'fileObjName' : 'upfile',   
        'swf'      : '/js/uploadify.swf',
        'fileTypeExts' : '*.zip',
        'uploader' : '/webadmin/attach/zip',
        'onUploadSuccess' : function(file, data, response) {
            var obj = eval('(' + data + ')');
            if (obj.state =='SUCCESS'){
                alert('上传成功');
            } else {
                alert(obj.error);
            }
        } 
    });    </script>
<{include file="../common/footer.tpl"}>